package com.app.adnroid.sichuanxiaoke.cn.xiaokebusiness.Utils;

import android.util.Log;

/**
 * Created by zhangyue on 2017/9/14.
 */

public class LogUtil {
    /*
    * 自定义日志类
    * */

    private static int VERBOSE=1;
    private static int INFO=2;
    private static int DEBUG=3;
    private static int WARN=4;
    private static int ERROR=5;
    private static int level=VERBOSE;

    public static void i(String key,String value){
        if(level <= INFO){Log.i(key,value);}

    }
    public static void e(String key,String value){
        if(level <= ERROR){Log.e(key,value);}

    }
    public static void w(String key,String value){
        if(level <= WARN){Log.w(key,value);}

    }
    public static void d(String key,String value){
        if(level <= DEBUG){Log.d(key,value);}

    }
}
